<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2023/6/6
  Time: 11:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>记事本注册</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/register.js"></script>
<form id="registerForm" action="${pageContext.request.contextPath}/register" method="post">
    <table>
        <thead>
        <tr>
            <th colspan="2">个人信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td colspan="2">
                <label for="userId">用户id:</label>
                <input type="text" name="userId" id="userId" placeholder="输入id">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <label for="userName">用户昵称:</label>
                <input type="text" name="userName" id="userName" placeholder="输入昵称">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <label for="registerPassword">密码:</label>
                <input type="password" name="registerPassword" id="registerPassword" placeholder="输入密码">
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="注册" onclick="return register()">
            </td>
            <td>
                <a href="${pageContext.request.contextPath}/login">取消</a>
            </td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
        <td colspan="2" id="errorMessage" class="errorMessage">
            ${errorMsg}
        </td>
        </tr>
        </tfoot>
    </table>
</form>
</body>
</html>
